<?php


namespace api\web\model;


use think\Model;

class NavModel extends  Model
{
    protected  $name ='navigation';

    public function nav()
    {
        return $this->hasMany(NavModel::class,'parent_id','id');
    }
}